#include "master.h"

Master::Master(Cat *p_cat)
{
	this->p_cat = p_cat;
}
Master::~Master()
{
	delete(p_cat);
}

void Master::show_cat()
{
	//友元类可以访问该类对象的私有成员
	cout << this->p_cat->age << endl;
	cout << this->p_cat->name << endl;
}
